package dto;

public class PropertyDTO {
	private String propertyTypeCode;
	private String propertyTypeContents;
	
	public PropertyDTO() {
		super();
	}
	public PropertyDTO(String propertyTypeCode, String propertyTypeContents) {
		super();
		this.propertyTypeCode = propertyTypeCode;
		this.propertyTypeContents = propertyTypeContents;
	}
	public String getPropertyTypeCode() {
		return propertyTypeCode;
	}
	public void setPropertyTypeCode(String propertyTypeCode) {
		this.propertyTypeCode = propertyTypeCode;
	}
	public String getPropertyTypeContents() {
		return propertyTypeContents;
	}
	public void setPropertyTypeContents(String propertyTypeContents) {
		this.propertyTypeContents = propertyTypeContents;
	}
	@Override
	public String toString() {
		return "PropertyDTO [propertyTypeCode=" + propertyTypeCode
				+ ", propertyTypeContents=" + propertyTypeContents + "]";
	}
	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime
				* result
				+ ((propertyTypeCode == null) ? 0 : propertyTypeCode.hashCode());
		result = prime
				* result
				+ ((propertyTypeContents == null) ? 0 : propertyTypeContents
						.hashCode());
		return result;
	}
	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		PropertyDTO other = (PropertyDTO) obj;
		if (propertyTypeCode == null) {
			if (other.propertyTypeCode != null)
				return false;
		} else if (!propertyTypeCode.equals(other.propertyTypeCode))
			return false;
		if (propertyTypeContents == null) {
			if (other.propertyTypeContents != null)
				return false;
		} else if (!propertyTypeContents.equals(other.propertyTypeContents))
			return false;
		return true;
	}
	
}
